﻿using System;
#if (SMARTPHONE || SILVERLIGHT || XBOX)
#else
using System.Runtime.Serialization;
#endif

namespace Narwhunderful.Aphelia.Framework.IO.Serialization
{
#if (SMARTPHONE || SILVERLIGHT || XBOX)
#else
    [Serializable]
#endif
    public class SimpleValueParsingException : Exception
    {
        ///<summary>
        ///</summary>
        public SimpleValueParsingException()
        {
        }

        ///<summary>
        ///</summary>
        ///<param name = "message"></param>
        public SimpleValueParsingException(string message)
            : base(message)
        {
        }

        ///<summary>
        ///</summary>
        ///<param name = "message"></param>
        ///<param name = "innerException"></param>
        public SimpleValueParsingException(string message, Exception innerException)
            : base(message, innerException)
        {
        }

#if (SMARTPHONE || SILVERLIGHT || XBOX)
#else
        /// <summary>
        /// </summary>
        /// <param name = "info"></param>
        /// <param name = "context"></param>
        protected SimpleValueParsingException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
#endif
    }
}
